﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet;
using System.Data;

namespace WebSite.Blogs
{
    public partial class BlogReportDetail : System.Web.UI.Page
    {
        private string blogid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            blogid = Request.QueryString["id"] + "";
            if (!Page.IsPostBack)
            {
                BindReportType();
            }
        }

        #region 加载举报类型
        private void BindReportType()
        {
            ReportTypeHelper rthelper = new ReportTypeHelper();
            Criteria c = new Criteria();
            c.Add(CriteriaType.Equals, "Flag", 0);
            List<ReportType> rlist = rthelper.QueryReportTypeBySearch(c, null);
            rblReportType.DataSource = rlist;
            rblReportType.DataTextField = "ReportTypeName";
            rblReportType.DataValueField = "ID";
            rblReportType.DataBind();
        }
        #endregion
    }
}